package com.ncloud.crm.service.impl;

import com.ncloud.crm.entity.BsDiscntFee;
import com.ncloud.crm.mapper.BsDiscntFeeMapper;
import com.ncloud.crm.service.BsDiscntFeeService;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BsDiscntFeeServiceImpl implements BsDiscntFeeService {
	
	private static final Logger logger = LogManager.getLogger(BsDiscntFeeServiceImpl.class);
	@Autowired
	private BsDiscntFeeMapper bsDiscntFeeMapper;

	@Override
	public int insertBsDiscntFee(BsDiscntFee discnt) {
		return bsDiscntFeeMapper.insertBsDiscnt(discnt);
	}

	@Override
	public int updateBsDiscntFee(BsDiscntFee discnt) {
		return bsDiscntFeeMapper.updateBsDiscnt(discnt);
	}

	@Override
	public BsDiscntFee getDiscntFeeByK(Long dicntInstId) {
		return bsDiscntFeeMapper.getBsDiscntFeeByPk(dicntInstId);
	}

	@Override
	public BsDiscntFee getDiscntOFeeByK(Long dicntInstId) {
		return bsDiscntFeeMapper.getBsDiscntOFeeByPk(dicntInstId);
	}
}
